package com.itheima.pattern.builder.demo1;

//指挥者类
public class Director {
    private Builder  builder;

    public Director(Builder builder){
        this.builder=builder;
    }


    //组装自行车的功能
    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();
        Bike bike = builder.createBike();
        return bike;
    }
}
